CC=clang++
antlrI=-I/usr/local/include/antlr4-runtime
antlrl=-lantlr4-runtime
antlr4=java -Xmx500M -cp "/usr/local/lib/antlr-4.9-complete.jar:$CLASSPATH" org.antlr.v4.Tool
main:
	$(antlr4) JSON.g4 -Dlanguage=Cpp
	$(CC) *.cpp $(antlrI) $(antlrl) -o main
clean:
	rm JSON*.cpp JSON*.h
	rm *.tokens *.interp
	rm main
